import { stringify } from "qs";
import request from "@/utils/request";

export async function List(params) {
  return request(`/ent/account/query`, {
    method: "POST",
    body: {
      ...params
    }
  });
}

export async function remove(params) {
  return request(`/ent/account/del/${params.key}`, {
    method: "POST",
    body: {}
  });
}

export async function add(params) {
  return request("/ent/account/add", {
    method: "POST",
    body: {
      ...params
    }
  });
}

export async function edit(params) {
  return request("/ent/account/edit", {
    method: "POST",
    body: {
      ...params,
      method: "update"
    }
  });
}


export async function status(params) {
  return request("/ent/account/status", {
    method: "POST",
    body: params
  });
}


export async function Detail(params) {
  return request(`ent/account/detail/${params.accountNo}`, {
    method: "POST",
    body:{}
  });
}

export async function enterpriseList(params) {
  console.log(params);
  return request("/ent/account/enterprise/list", {
    method: "POST",
    body: params
  });
}
export async function bindEnterprise(params) {
  return request("/ent/account/bind", {
    method: "POST",
    body: params
  });
}
